console.show();
var ip = "47.120.74.135";
var port = "8000";
var updateUrl = "http://" + ip + ":" + port + "/src/src.zip";
var savePath = "/sdcard/src.zip";
var unZipPath = "/sdcard/脚本/src";
console.log("开始下载");
var response = http.get(updateUrl);
files.writeBytes(savePath, response.body.bytes());
console.log("下载完成");
files.removeDir(unZipPath);
files.create(unZipPath + "/");
zips.X(savePath, unZipPath);
console.log("解压完成");
